package com.loit.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.loit.loitcommon.utils.ExcelField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;


/**
 * 学生信息 [测试测试脚手架]数据对象.
 * Created by lifh on 2022-12-26.
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Student", description = "学生信息对象")
@TableName(value = "test_student")
public class Student implements Serializable {

	/**
	 * 序号
	 */
	@ApiModelProperty(value = "序号")
	@ExcelField(title = "序号",align = 2, sort = 1)
	@TableId(value = "id", type = IdType.AUTO)    //采用主键自增策略，同时数据库也是主键自增才可以生效
	private Integer id;

	/**
	 * 学生名称
	 */
	@ApiModelProperty(value = "学生名称")
	@ExcelField(title = "学生名称",align = 2, sort = 2)
	private String tName;

	/**
	 * 学生等级
	 */
	@ApiModelProperty(value = "学生等级")
	@ExcelField(title = "学生等级",align = 2, sort = 3)
	private String tRank;

	/**
	 * 学生性别 0女 1男
	 */
	@ApiModelProperty(value = "学生性别 0女 1男")
	@ExcelField(title = "学生性别 0女 1男",align = 2, sort = 4)
	private String tSex;

	/**
	 * 兴趣爱好
	 */
	@ApiModelProperty(value = "兴趣爱好")
	@ExcelField(title = "兴趣爱好",align = 2, sort = 5)
	private String tHobby;

	/**
	 * 班级编号
	 */
	@ApiModelProperty(value = "班级编号")
	@ExcelField(title = "班级编号",align = 2, sort = 6)
	private String tClass;


}
